package com.sumfun.blog.model.request;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.sumfun.blog.handler.ListToVarcharTypeHandler;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class ArticleUpdateRequest {
    /**
     * 博文ID
     */
    @TableId(value = "article_id", type = IdType.AUTO)
    private Long articleId;

    /** 分类id */
    private List<Long> categoryIdList;

    /** 标签id */
    private List<Long> tagIdList;

    /**
     * 发布日期
     */
    @TableField(value = "push_data")
    private Date pushData;

    /**
     * 发表用户
     */
    @TableField(value = "article_user")
    private String articleUser;

    /**
     * 博文标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 点赞数
     */
    @TableField(value = "like_count")
    private Integer likeCount;

    /**
     * 评论数
     */
    @TableField(value = "comment_count")
    private Integer commentCount;

    /**
     * 浏览量
     */
    @TableField(value = "read_count")
    private Integer readCount;

    /**
     * 是否置顶
     */
    @TableField(value = "top_flag")
    private String topFlag;

    /**
     * 文章摘要
     */
    @TableField(value = "article_summary")
    private String articleSummary;

    /**
     * 文章markdown内容
     */
    @TableField(value = "content_md")
    private String contentMd;


    /**
     * 文章html内容
     */
    @TableField(value = "content_html")
    private String contentHtml;


}
